define('appMain', ['vue', 'appStore', 'iview', 'appRouter','siteConfig','cookie'],
function (Vue, appStore, iview, appRouter, siteConfig,cookie) {
  // 启动iview组件
  Vue.use(iview)

  var app = new Vue({
    el: '#app',
    router:appRouter,
    store:appStore,
    created() {
      //iview.Message.info('初始化完成')
      document.title=siteConfig.siteName;
      //cookie.set('TOKEN_KEY', 'token', { expires: siteConfig.cookieExpires || 1 })
    },
  })

  return app
})
